{extend name='table'}

{block name="content"}
<div class="think-box-shadow">
    {include file='log/index_search'}
    <table id="OplogTable" data-url="{:request()->url()}" data-target-search="form.form-search"></table>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        $('#OplogTable').layTable({
            even: true, height: 'full',
            cols: [[
                {field: 'zh', title: '用户名', width: 250, align: 'center'},
                {field: 'system', title: '描述', minWidth: 200, align: 'center'},
                {field: 'data', title: '注册时间', width: 250, align: 'center', sort: true, fixed: 'right'},
                {toolbar: '#toolbar', title: '{:lang("操作")}', align: 'center', width: 200, fixed: 'right'}
            ]]
        });
    });
</script>

<script type="text/html" id="toolbar">
    <a class="layui-btn layui-btn-xs layui-bg-red" style="border: none" data-confirm="删除后无法恢复！确定要删除该记录吗？" data-action='{:url("delete")}?zh={{d.zh}}'>删除</a>
</script>
{/block}